﻿<%@ page language="C#" masterpagefile="~/Management.master" autoeventwireup="true" inherits="_Default, App_Web_2907tptn" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="m_contentBody">
    <table width="100%" cellpadding="0" cellspacing="0">
    <tr><td style="height: 23px"><br /><br /></td></tr>
<tr><td>
    <asp:GridView ID="grdEquipment" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" 
        OnPageIndexChanging="grdEquipment_PageIndexChanging" 
        OnRowDeleting="grdEquipment_RowDeleting" 
        Width="100%" DataKeyNames="EquipmentId" DataSourceID="odsEquipement" 
        AllowSorting="True" onrowcancelingedit="grdEquipment_RowCancelingEdit" 
        onrowcommand="grdEquipment_RowCommand" 
        onrowdatabound="grdEquipment_RowDataBound1" 
        onrowediting="grdEquipment_RowEditing"  
        onrowupdating="grdEquipment_RowUpdating">
        <HeaderStyle BorderStyle="None" CssClass="GridViewHeader" Height="20px" />
        <Columns>
            <asp:CommandField ShowEditButton="True">
                <ItemStyle Width="30px" />
            </asp:CommandField>
            <asp:ButtonField CommandName="Delete" Text="Delete">
                <ItemStyle Width="30px" />
            </asp:ButtonField>
            <asp:ButtonField CommandName="Detail" Text="Detail">
                <ItemStyle Width="30px" />
            </asp:ButtonField>
<asp:BoundField DataField="EquipmentId" HeaderText="EquipmentId">
    <ItemStyle Width="50px" />
</asp:BoundField>
            <asp:BoundField DataField="CodeNumber" HeaderText="Code">
                <ItemStyle Width="70px" />
            </asp:BoundField>
            <asp:BoundField HeaderText="System">
                <ItemStyle Width="70px" />
            </asp:BoundField>
            <asp:BoundField HeaderText="Type" >
                <ItemStyle Width="70px" />
            </asp:BoundField>
            <asp:BoundField DataField="ModelLabel" 
                HeaderText="Model" >
                <ItemStyle Width="70px" />
            </asp:BoundField>
            <asp:CheckBoxField DataField="IsDamaged" HeaderText="Damaged">
                <ItemStyle Width="30px" />
            </asp:CheckBoxField>
        </Columns>
        <PagerStyle CssClass="GridViewHeader" />
        <EditRowStyle BackColor="LightGray" />
        <RowStyle CssClass="GridViewBackGround" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
    </td>
    </tr>
    <tr><td></td></tr>
     <tr><td>
         <asp:ObjectDataSource ID="odsEquipement" runat="server" 
             DataObjectTypeName="Model.Equipment" DeleteMethod="Delete" InsertMethod="Save" 
             SelectMethod="GetEquipments" TypeName="Service.StockService" 
             UpdateMethod="Update"></asp:ObjectDataSource>
         </td></tr>
    </table>
    
   <table width="100%" cellpadding="0" cellspacing="7">
    <tr>
        <td  style="width: 314px">&nbsp;
        <fieldset id="Fieldset2">
        <legend>
            <asp:Label ID="lblPublishing" runat="server" 
                Text="Warranty Information" Font-Bold="True"></asp:Label>
        </legend>
        <table>
            <tr>
                <td align="left" style="width: 117px">Warranty</td>
                <td align="left"><asp:CheckBox ID="CheckBox1" runat="server" /></td>
            </tr>
            <tr>
                <td align="left" style="width: 117px">Start date<br />
                    (mm/dd/yy)</td>
                <td align="left">
                    <asp:TextBox ID="TextBox1" runat="server" Height="26px" Width="127px"></asp:TextBox>&nbsp;
                    <asp:ImageButton ID="ImageButton1" runat="server" BorderColor="#66FFFF" 
                        BorderStyle="Solid" Height="24px" ImageUrl="~/images/calendar.jpg" 
                        Width="41px" />
                                                            </td>
            </tr>
            <tr>
                <td align="left" style="width: 117px">End date<br />
                    (mm/dd/yy)</td>
                <td align="left">
                    <asp:TextBox ID="TextBox4" runat="server" Height="26px" Width="127px"></asp:TextBox>
                    <asp:ImageButton ID="ImageButton2" runat="server" BorderColor="#66FFFF" 
                        BorderStyle="Solid" Height="24px" ImageUrl="~/images/calendar.jpg" 
                        Width="41px" />
                </td>
            </tr>
            <tr>
                <td align="left" style="width: 117px">Description</td>
                <td align="left">
                    <asp:TextBox ID="TextBox3" runat="server" Height="78px" Width="181px"></asp:TextBox>
                </td>
            </tr>
            
        </table>
        </fieldset>
        </td>
        <td>&nbsp;
        <fieldset id="Fieldset3">
        <legend>
            <asp:Label ID="Label2" runat="server" 
                Text="Other Information" Font-Bold="True"></asp:Label>
        </legend>
        <table>
            <tr>
                <td align="left" style="width: 117px">Serial number</td>
                <td align="left">
                    <asp:TextBox ID="TextBox2" runat="server" Height="26px" Width="127px"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="left" style="width: 117px">Owner</td>
                <td align="left">
                    &nbsp;
                                                            </td>
            </tr>
            <tr>
                <td align="left" style="width: 117px">Location</td>
                <td align="left">
                    <asp:TextBox ID="TextBox5" runat="server" Height="26px" Width="127px"></asp:TextBox>
                </td>
            </tr>
                                                        <tr>
                <td align="left" style="width: 117px">Building</td>
                <td align="left">
                    <asp:TextBox ID="TextBox12" runat="server" Height="26px" Width="127px"></asp:TextBox>
                </td>
                                                        </tr>
            <tr>
                <td align="left" style="width: 117px">Estimated EOF</td>
                <td align="left">
                    <asp:TextBox ID="TextBox13" runat="server" Height="26px" Width="127px"></asp:TextBox>
                </td>
            </tr>
            
        </table>
        </fieldset>
        </td>
      </tr>
      <tr>
        <td  style="width: 314px">&nbsp;
        <fieldset id="Fieldset1">
        <legend>
            <asp:Label ID="Label1" runat="server" 
                Text="Purchase Information" Font-Bold="True"></asp:Label>
        </legend>
        <table>
            <tr>
                <td align="left" style="width: 363px">PO Reference nº</td>
                <td align="left">
                    <asp:TextBox ID="TextBox9" runat="server" Height="26px" Width="127px"></asp:TextBox>&nbsp;
                                                            </td>
                                                        </tr>
            <tr>
                <td align="left" style="width: 363px">Purchase date(mm/dd/yy)</td>
                <td align="left">
                    <asp:TextBox ID="TextBox7" runat="server" Height="26px" Width="127px"></asp:TextBox>&nbsp;
                    <asp:ImageButton ID="ImageButton5" runat="server" BorderColor="#66FFFF" 
                        BorderStyle="Solid" Height="24px" ImageUrl="~/images/calendar.jpg" 
                        Width="41px" />
                                                            </td>
            </tr>
            <tr>
                <td align="left" style="width: 363px">Warranty period&nbsp;</td>
                <td align="left">
                    <asp:TextBox ID="TextBox10" runat="server" Height="26px" Width="127px"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="left" style="width: 363px">Unit Price&nbsp;</td>
                <td align="left">
                    <asp:TextBox ID="TextBox8" runat="server" Height="26px" Width="127px"></asp:TextBox></td>
            </tr>
                                                        <tr>
                <td align="left" style="width: 363px">Quantity</td>
                <td align="left">
                    <asp:TextBox ID="TextBox11" runat="server" Height="26px" Width="127px"></asp:TextBox></td>
                                                        </tr>
            <tr>
                <td align="left" style="width: 363px">Description</td>
                <td align="left">
                    <asp:TextBox ID="TextBox6" runat="server" Height="78px" Width="181px"></asp:TextBox>
                </td>
            </tr>
            
        </table>
        </fieldset>
        </td>
        <td></td>
      </tr>
   </table>
                    
</asp:Content>

